/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Yahoo;

import java.util.Vector;

/**
 *
 * @author mrbao
 */
public class Group {

    private String name;
    private boolean expanded = true;
    private Vector allNicks;

    public Group(String name) {
        this.name = name;
        this.allNicks = new Vector();
    }

    public int GetTotalNick() {
        return allNicks.size();
    }

    public void AddNick(Nick nick) {
        allNicks.addElement(nick);
    }

    public Vector getAllNicks() {
        return allNicks;
    }

    public void setAllNicks(Vector allNicks) {
        this.allNicks = allNicks;
    }

    public boolean isExpanded() {
        return expanded;
    }

    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    public void setExpanded() {
        this.expanded = !expanded;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
